# FRV testcase for dci @(GRi,GRj)
# mach: all

	.include "testutils.inc"

	start

	.global dci
dci:
	or_spr_immed	0x08000000,hsr0	; data cache: copy-back mode

	set_mem_immed	0xdeadbeef,sp
	test_mem_immed	0xdeadbeef,sp

	flush_data_cache sp
	set_mem_immed	0xbeefdead,sp
	test_mem_immed	0xbeefdead,sp

	dci		@(sp,gr0)
	test_mem_immed	0xdeadbeef,sp

	pass
